package cn.edu.scau.cmi.chenyipeng.AbstractFactory;

public abstract class CommonFactory {
	public static CommonFactory getBrandFactory(String brand) {
		CommonFactory cf = null;
		if(brand.compareTo("傲农") == 0) {
			cf = new AonongFactory();
			return cf;
		}
		if(brand.compareTo("天邦") == 0) {
			cf = new TianbangFactory();
			return cf;
		}
		if(brand.compareTo("温氏") == 0) {
			cf = new WensFactory();
			return cf;
		}
		return null;
	}
	public abstract Meat makeBeef();
	public abstract Meat makeChicken();
	public abstract Meat makePork();
}
